﻿using Dapper.SimpleDao.Infrastructure;
using Ninject.Modules;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dapper.SimpleDao.Test
{
    public class DevinjectModule : NinjectModule
    {
        public override void Load()
        {
            Bind<IDbContext>().To<MySqlDbContext>().WithConstructorArgument("connectionString", ConfigurationManager.AppSettings["UsedConnectionString"]);
            Bind<ITeamRepository>().To<TeamRepository>();
        }
    }

}
